#ifndef _COMMUNICATION_DEVICE_FINGERPRINT_HEAD_H
#define _COMMUNICATION_DEVICE_FINGERPRINT_HEAD_H

#include "communication-device.h"
#include "FingerPrint-manager.h"
#include <map>
/**
 * 门锁社保类
*/
class CommunicationDeviceFingerPrint : public CommunicationDevice
{
public:
	CommunicationDeviceFingerPrint(FingerPrintManager *fingerPrintManager);
	void communication(SmartDevicenetProtocol &netProtocol, NetCommunication *netObj);
	void add(SmartDevicenetProtocol &netProtocol, NetCommunication *netObj);
	void remove(SmartDevicenetProtocol &netProtocol, NetCommunication *netObj);
	void clear(SmartDevicenetProtocol &netProtocol, NetCommunication *netObj);
	void replay(NetCommunication *netObj, const string &command, const string &errmsg = "", const string &data = "");

private:
	FingerPrintManager *fingerPrintManager;
	typedef void (CommunicationDeviceFingerPrint::*funcation_t)(SmartDevicenetProtocol &, NetCommunication *);
	map<string, funcation_t> handle;
};

#endif
